package com.dhcc.sds.standard.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.FieldStrategy;
import com.dhcc.core.framework.base.entity.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


/**
 * 标准化_医嘱对照
 * 
 * @ClassName: SdsStandOrderMatchEntity
 * @Description: TODO
 * @author sunyingjie
 * @date 2021-03-22 10:09:56
 */
@TableName("t_sds_st_order_match")
public class SdsStandOrderMatchEntity extends BaseEntity<SdsStandOrderMatchEntity> {
	private static final long serialVersionUID = 1L;

	//字典分类
	private Long dicId;
	//字典子项
	@TableField(strategy= FieldStrategy.IGNORED)
	private Long dicsubId;
	//对照类型（H:手动;K:关键字;C:医嘱通用名）
	private String matchType;	
	//关联医嘱项
	private Long ordmastId;
	//关联医嘱项名称
	@TableField(exist=false)
	private String ordmastDesc;
	//关联抗菌药物名称
	@TableField(exist=false)
	private String dicsubDesc;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date matchDate;

	/**
	 * 设置：字典子项
	 */
	public void setDicsubId(Long dicsubId) {
		this.dicsubId = dicsubId;
	}
	/**
	 * 获取：字典子项
	 */
	public Long getDicsubId() {
		return dicsubId;
	}
	/**
	 * 设置：对照类型（医嘱通用名/医嘱/药品通用名）
	 */
	public void setMatchType(String matchType) {
		this.matchType = matchType;
	}
	/**
	 * 获取：对照类型（医嘱通用名/医嘱/药品通用名）
	 */
	public String getMatchType() {
		return matchType;
	}
	/**
	 * 设置：关联医嘱项
	 */
	public void setOrdmastId(Long ordmastId) {
		this.ordmastId = ordmastId;
	}
	/**
	 * 获取：关联医嘱项
	 */
	public Long getOrdmastId() {
		return ordmastId;
	}

	public String getOrdmastDesc() {
		return ordmastDesc;
	}

	public void setOrdmastDesc(String ordmastDesc) {
		this.ordmastDesc = ordmastDesc;
	}

	public String getDicsubDesc() {
		return dicsubDesc;
	}

	public void setDicsubDesc(String dicsubDesc) {
		this.dicsubDesc = dicsubDesc;
	}

	public Long getDicId() {
		return dicId;
	}

	public void setDicId(Long dicId) {
		this.dicId = dicId;
	}

	public Date getMatchDate() {
		return matchDate;
	}

	public void setMatchDate(Date matchDate) {
		this.matchDate = matchDate;
	}
}
